@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-link-line{
  display: inline;
  margin: 0 5px;
}

.cell div:last-of-type .el-link-line{
  display: none;
}
.img-country-icon{
  width: 20px;
  vertical-align: sub;
}
.hidden-3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  word-break:break-word;
  -webkit-line-clamp:3;
  overflow:hidden;
  text-overflow: ellipsis;
}
.hidden-2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  word-break:break-word;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow: ellipsis;
}
.hidden-1{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  word-break:break-word;
  -webkit-line-clamp:1;
  overflow:hidden;
  text-overflow: ellipsis;
}
.el-icon-invitaion{
  background: url("~@/assets/images/invitaion-icon.png") no-repeat;
  font-size: 16px;
  background-size: cover;
  padding-left: 5px;
}
.el-icon-invitaion::before{
  content: "替";
  font-size: 16px;
  visibility: hidden; // 隐藏文字
}
.mgr10{
  margin-right: 10px;
}
.mgb10{
  margin-bottom: 10px;
}
.mgt10{
  margin-top: 10px;
}
.mgl10{
  margin-left: 10px;
}
.mgr20{
  margin-right: 20px;
}
.mgb20{
  margin-bottom: 20px;
}
.mgt20{
  margin-top: 20px;
}
.mgl20{
  margin-left: 20px;
}
// 新增type的颜色
.el-tag--untreated{
  background: #FC6347;
  color: #FFFFFF;
}
.el-tag--dark.el-tag--untreated{
  border-color: #FC6347;
}
.el-tag--waitReceived{
  background: #FFC74A;
  color: #FFFFFF;
}
.el-tag--dark.el-tag--waitReceived{
  border-color: #FFC74A;
}
.el-tag--received{
  background: #009C46;
  color: #FFFFFF;
}
.el-tag--dark.el-tag--received{
  border-color: #009C46;
}
.el-tag--cancel{
  background: #000000;
  color: #FFFFFF;
}
.el-tag--dark.el-tag--cancel{
  border-color: #000000;
}
.el-tag--ignore{
  background: #AAAAAA;
  color: #FFFFFF;
}
.el-tag--dark.el-tag--ignore{
  border-color: #AAAAAA;
}

.el-button--untreated{
  background: #FC6347;
  color: #FFFFFF;
  border-color: #ff4949;
}
.el-button--untreated:hover, .el-button--untreated:focus {
  background: #FC6347;
  border-color: #FC6347;
  color: #FFFFFF;
}

// 侧边栏数字
.el-menu-item .mark {
  padding: 0 6px;
  position: absolute;
  top: 17px;
  right: 20px;
  width: auto;
  height: 20px;
  line-height: 20px;
  background-color: #ff593b;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.goods-SKU-info{
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  color: #7F7F7F;
  span:last-of-type .attr-link{
    display: none;
  }
}

.el-button--1688 {
  color: #FFFFFF;
  background-color: #FF6800;
  border-color: #FF6800;
}

.el-button--1688:hover, .el-button--1688:focus {
  color: #FFFFFF;
  border-color: rgba(255, 104, 0, 0.89);
  background-color: rgba(255, 104, 0, 0.89);
}

.el-button--1688.is-disabled,
.el-button--1688.is-disabled:hover,
.el-button--1688.is-disabled:focus,
.el-button--1688.is-disabled:active {
  color: #FFFFFF;
  background-color: #FFBF97;
  border-color: #FFBF97;
}


.el-tag.el-tag--1688 {
  background-color: #faf5f0;
  border-color: #ffc6a3;
  color: #FF6800;
}
.number-button{
  height: 25px;
  color: #000000;
  font-weight: bold;
  border: #cccccc 1px solid;
  border-radius: 3px;
}
.number-button-success{
  color: #ffffff;
  background: #009c46;
  border: #009c46;
}

.number-button-danger{
  color: #ffffff;
  background: #ff0000;
  border: #ff0000;
}
.font-red{
  color: #ff0000;
}
.font-green{
  color: #009C46;
}
.font-blue{
  color: #1890ff;
}
.table-tips{
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #7F7F7F;
  p{
    margin: 0;
    padding: 0;
  }
}
.font-grey{
  color: #7f7f7f;
}
.font-bold{
  font-weight: bold;
}

.img-box{
  width: 90px;
  height: 90px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 3px;
  background-color: #eee;
  border-radius: 5px;

  img{
    width: 40px;
    height: 40px;
  }
}
.img-one {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  img{
    width: 80px;
    height: 80px;
  }
}
.goods-attr{
  span:last-of-type .attr-link{
    display: none;
  }
}

.el-button--orange {
  color: #FFFFFF;
  background-color: #FF6800;
  border-color: #FF6800;
}

.el-button--orange:hover, .el-button--orange:focus {
  color: #FFFFFF;
  border-color: rgba(255, 104, 0, 0.89);
  background-color: rgba(255, 104, 0, 0.89);
}

.el-button--orange.is-disabled,
.el-button--orange.is-disabled:hover,
.el-button--orange.is-disabled:focus,
.el-button--orange.is-disabled:active {
  color: #FFFFFF;
  background-color: #FFBF97;
  border-color: #FFBF97;
}

.fa-text-color{
  color: #FF6600;
}
.sp-text-color{
  color: #ee4d2d;
}

.el-button + .el-button{
  margin-bottom: 10px;
}

.f12{
  font-size: 12px;
}
.f13{
  font-size: 13px;
}
.f14{
  font-size: 14px;
}
.table-question-icon{
  color:#409eff;
  margin-left:5px;
}

// view类型按钮
.el-button--view {
  color: #fff;
  background-color: #13ce66;
  border-color: #13ce66;
}
.el-button--view:hover, .el-button--view:focus {
  color: #fff;
  background-color: #42d885;
  border-color: #42d885;
}
.el-button--view.is-plain {
  color: #13ce66;
  background: #e7faf0;
  border-color: #13ce66;
}
.el-button--view.is-plain:focus, .el-button--view.is-plain:hover {
  background: #13ce66;
  border-color: #13ce66;
  color: #fff;
}
.platform-radio{
  .el-radio-button__inner{

  }
  .el-radio-button__inner:hover {
    color: #ff6d6d;
  }
  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
    color: #FFFFFF;
    background-color: #ff6d6d;
    border-color: #ff6d6d;
    -webkit-box-shadow: -1px 0 0 0 #ff6d6d;
    box-shadow: -1px 0 0 0 #ff6d6d;
  }
}
